Open the Visual Studio project in Visual Studio 2008 or later and build the dll using the release configuration.